
package com.gl.tp1;

/**
 *
 * @author wadi3
 */
import java.sql.*;


public class UtilitaireConnection {

    private static Connection conn;

    static {
        try {
            
            Class.forName("org.apache.derby.jdbc.ClientDriver");
            conn = DriverManager.getConnection("jdbc:derby://localhost:1527/DBUsers", "root", "root");
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    public static Connection getConnection() {
        return conn;
    }

   
}